package cn.sdormitory.smartdor.dao;

import cn.sdormitory.smartdor.entity.StudentTrajectory;
import cn.sdormitory.smartdor.entity.StudentTrajectoryPageParam;
import cn.sdormitory.smartdor.vo.SdAttenceAppVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @className: StudentTrajectoryDao
 * @author: Alex
 * @date: 2024/9/26
 **/
@Mapper
public interface StudentTrajectoryDao extends BaseMapper<StudentTrajectory> {

	void insertBatch(@Param("trajectoryList") List<StudentTrajectory> trajectoryList);

	int findPageCount(@Param("query")StudentTrajectoryPageParam query);

	List<StudentTrajectory> findPageList(@Param("startNum")int startNum,
										 @Param("query") StudentTrajectoryPageParam query);


	int teacherFindPageListCount(@Param("query")StudentTrajectoryPageParam query);

	List<StudentTrajectory> teacherFindPageList(@Param("startNum")int startNum,
												@Param("query")StudentTrajectoryPageParam query);


	List<StudentTrajectory> getInfoByStudentId(Long studentId);
	
	IPage<StudentTrajectory> getInfoPageByStudentId(String studentId, IPage<StudentTrajectory> page);
	
	StudentTrajectory getTrajectoryInfoByStudentId(String studentId, String faceTime);
	
}
